
#include <iostream>
#include <boost/bind.hpp>
#include <boost/thread.hpp>

using namespace std;
using namespace boost;

void printVar(int* in) {
	std::cout << "Hello" << *in << std::endl;
       	*in = (*in) ++;	
}

int main(int argc, char *argv[]) {
	int in = 0;
	boost::thread thd(boost::bind(&printVar,&in));
	thd.join();	
	return 0;
}
